//
//  helpViewController.m
//  One Construction
//
//  Created by apple on 2019/9/7.
//  Copyright © 2019 apple. All rights reserved.
//

#import "helpViewController.h"
#import "faceToFaceViewController.h"
#import "advisoryViewController.h"
#import "downLoadViewController.h"
@interface helpViewController ()

@end

@implementation helpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:246/255.0 green:246/255.0 blue:246/255.0 alpha:1.0];
    self.navigationItem.title = @"帮助中心";
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"立即提问" style:UIBarButtonItemStylePlain target:self action:@selector(clickNavRightBtn)];
    [self creatUi];
}
- (void)clickNavRightBtn{
    
    //调到咨询页面
    advisoryViewController *ad =[[advisoryViewController alloc]init];
    [self.navigationController pushViewController:ad animated:YES];
    
    
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (void)creatUi{
    UILabel *firstLable = [[UILabel alloc]initWithFrame:CGRectMake(10, AppNavitionHright+16, ScreenWidth-20, 49)];
    [self.view addSubview:firstLable];
    [self addLable:firstLable laleText:@"    课程什么时间可以下载?"];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickToNextView)];
    
    [firstLable addGestureRecognizer:tap];
    firstLable.userInteractionEnabled = YES;
    
    
}


- (void)clickToNextView{
    downLoadViewController *dow = [[downLoadViewController alloc]init];
    [self.navigationController pushViewController:dow animated:YES];
}

- (void)addLable:(UILabel *)llable laleText:(NSString *)labletext {
    
    llable.backgroundColor = [UIColor whiteColor];
    
    llable.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    llable.layer.cornerRadius = 10;
    llable.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.05].CGColor;
    llable.layer.shadowOffset = CGSizeMake(0,1);
    llable.layer.shadowOpacity = 1;
    llable.layer.shadowRadius = 2;
    llable.text = labletext;
    llable.textColor = [UIColor blackColor];
    llable.font = [UIFont systemFontOfSize:17];
}
@end
